<?php defined("IN_SYSTEM") or die("Access Denied");/* 防止模板被盗 */?><script id="LAY-msg-tpl" type="text/html">
	{{# function msgEach(data, level) { }}
		{{# layui.each(data, function(index, item) { }}
			{{# if (level > 4) {level = 5;} }}
			<div class="info-box" style="padding:0 0 0 {{ level*20 }}px;">
				<div class="info-item">
					<img class="info-img" width="50" height="50" src="{{ !item.nick ? '{:config('module_blog.avatar')}' : '__IMG__/avatar.png' }}" style="border-radius:50%;">
					<div class="info-text">
						<p class="title count">
							<span class="name">{{ item.nick ? item.nick : '{:config('module_blog.nick')}' }}</span>
							<span class="msg-like like" data-url="[likeUrl]?id={{ item.id }}" data-like="{{ item.like }}">
								<i class="layui-icon layui-icon-praise"></i>
								<em>{{ item.like }}</em>
							</span>
						</p>
						<p class="info-intr">
							{{ item.content }}
						</p>
					</div>
				</div>
			</div>
			{{# if (item.children) { }}
				{{# msgEach(item.children, level+1);}}
			{{# } }}
		{{# }); }}
	{{# } }}
	{{# msgEach(d, 0);}}
</script>